

import request from '@/utils/request'

const classRoomBaseUrl = process.env.VUE_APP_CONTENXT_PATH + "/classroom";

export function findClassRoomByCondition(query) {
    return request({
        url: classRoomBaseUrl + '/listByCondition',
        method: 'get',
        params: query
    })
}

export function findClassRoomHistoryByCondition(query) {
    return request({
        url: classRoomBaseUrl + '/listHistoryByCondition',
        method: 'get',
        params: query
    })
}

export function submitClassRoomUseInfo(data) {
    return request({
        url: classRoomBaseUrl + '/submitClassRoomUseInfo',
        method: 'post',
        data: data
    })
}

// export function submitaddLeave(data) {
//     return request({
//         url: leaveInfoBaseUrl + '/submitaddLeave',
//         method: 'post',
//         data: data
//     })
// }


